import React, { FC } from 'react';
import { View, Text } from '@tarojs/components';
import { styled } from 'linaria/react';
import { useClassName } from '@/utils/index';

export interface IProps extends ICompProps {
    phoneNumber?: string;
}
PhoneNumber.defaultProps = {} as Partial<IProps>;
function PhoneNumber(props: IProps) {
    const { className, style, phoneNumber } = props;
    const localClassName = useClassName('PhoneNumber', className);
    return (
        <RootView className={localClassName} style={style}>
            <View className="PhoneNumber_CardWrap">
                <View className="title">电话号码</View>
                <View className="content">{phoneNumber}</View>
            </View>
        </RootView>
    );
}
export default React.memo(PhoneNumber as FC<IProps>);
const cssBorder = '2px solid #F3F3F3';
const RootView = styled(View)`
    &.PhoneNumber {
        margin-bottom: 50px;
        .PhoneNumber_CardWrap {
            border-bottom: ${cssBorder};
            padding-bottom: 14px;
        }
    }
`;
